IOMMU: properly check whether interrupt remapping is enabled
authorJan Beulich <jbeulich@suse.com>
Mon, 25 Mar 2013 13:28:31 +0000 (14:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Mar 2013 13:28:31 +0000 (14:28 +0100)
commitfae0372140befb88d890a30704a8ec058c902af8
treeeae6ad998551ddd302104d765a75375b7319747f
parent85bae8b3406b234f3074617771072623525a3576
IOMMU: properly check whether interrupt remapping is enabled

... rather than the IOMMU as a whole.

That in turn required to make sure iommu_intremap gets properly
cleared when the respective initialization fails (or isn't being
done at all).

Along with making sure interrupt remapping doesn't get inconsistently
enabled on some IOMMUs and not on others in the VT-d code, this in turn
allowed quite a bit of cleanup on the VT-d side (if desired, that
cleanup could of course be broken out into a separate patch).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: "Zhang, Xiantao" <xiantao.zhang@intel.com>
xen/arch/x86/msi.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/io_apic.h